#include <iostream>

using namespace std;

void swap(int* ip1, int* ip2) {
    int temp = *ip1;
    *ip1 = *ip2;
    *ip2 = temp;
}

int main() {
    int i = 0, j = 42;
    swap(&i, &j);
    cout << "After swap i = " << i << " j = " << j << endl;
    return 0;
}